import request from '@/utils/request'

export default {
  dcsStandardList(params){
    return request({
      url:'/dcs-standard/lists',
      method:'get',
      params
    })
  },
  dcsStandardQuery(tableQuery,tablePage){
      const params = {
        page:!tablePage.current?1:tablePage.current,
        num:!tablePage.size?20:tablePage.size,
        cn_name:tableQuery.sname
      }
    return request({
      url:'/dcs-standard',
      method:'get',
      params
    })
  },
  addStandardName(data){
    return request({
      url:'/dcs-standard',
      method:'post',
      data
    })
  },
  updateStandardName(sid,data){
    return request({
      url:`/dcs-standard/${sid}`,
      method:'put',
      data
    })
  },
  deleteStandardName(sid){
    return request({
      url:`/dcs-standard/${sid}`,
      method:'delete'
    })
  },
  imptStandards(json){
    return request({
      url:'/dcs-standard/import',
      method:'post',
      data:{json}
    })
  }


}
